home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / Q-R / Reference Link folder / Reference Link Documentation next >
Encoding:
Text File  |  1993-03-30  |  4.3 KB  |  60 lines  |  [ttro/ttxt]

  1. Reference Link, ©1993 by James W. Walker
  2.  
  3.  
  4. What it Does
  5.  
  6. Reference Link is an INIT that makes THINK Reference 2.0 easier to use if you have System 7.  With Reference Link installed, you can do a control-option-double-click on a word in a text editor or word processor, whereupon the word will be looked up in THINK Reference 2.0.  Alternately, you can first select a word or phrase, and then type control-option-r, and the selected text will be looked up in THINK Reference.  If THINK Reference is not already running, it will be launched.  If you type control-option-r while THINK Reference is in front, you go back to the editor.  If you type control-option-t while a word is selected, the word will be replaced by its template.
  7.  
  8. In the previous paragraph, you should take the word “editor” in its broadest sense:  Any application in which one can select some text and copy it to the clipboard, be it THINK C or CompuServe Navigator.
  9.  
  10.  
  11. How it Works
  12.  
  13. Reference Link uses a JGNEFilter patch to monitor events, and uses a head patch on WaitNextEvent in Finder to get some background time when looking up templates. The patch code uses about 4K of System heap.
  14.  
  15.  
  16. Customizing Reference Link
  17.  
  18. As it is distributed, Reference Link watches for control-option double-click or control-option-r to look something up, and control-option-r to send you back to the editor.  These can be changed with the aid of ResEdit.  Open Reference Link and open the 'Keys' resource.  The first item therein is a modifier mask for double-clicks.  The text beside the box gives numbers for the various modifier keys, which you add together to represent combinations.  For example control is 4096 and option is 2048, so control-option is 4096+2048 = 6144.  Next comes the modifiers for the keystrokes, then the key codes for the keystrokes.  Note that a key code is not the same as a character code.  To find a key code, look up “extended keyboard” in THINK Reference 2.0.  I used the same keystroke for both look-up and jump-back, since only one makes sense in a given context, but you can make them different if you wish.
  19.  
  20. When Reference Link sees a mouse click with the specified modifiers, the event is passed on to the editing application as an unmodified click.  Therefore you should not choose a modifier combination likely to have an existing meaning in some applications, such as plain command, option, or shift.
  21.  
  22. If you want to deactivate Reference Link in certain applications, you can insert their application signatures (AKA creator codes) in the 'Excl' resource.
  23.  
  24. If you use Super Boomerang, I suggest that you configure it to exclude THINK Reference from the “Re-Launch” feature.  This may prevent a problem when Reference Link launches THINK Reference.
  25.  
  26. I am told that RadiusWare uses control-option-click for a pop-up menu, so users of RadiusWare should choose a different modifier combination for Reference Link.
  27.  
  28.  
  29. Known Limitations
  30.  
  31. The template function is more iffy than the lookup function.  It goes through some contortions to send AppleEvents when the foreground application is not Apple Event aware (e.g., THINK C 5.0), and may not work at all in applications that use a private scrap (such as Navigator).
  32.  
  33. Neither keystroke will work in desk accessories, but the modified double-click seems to work.
  34.  
  35.  
  36. About the Icon
  37.  
  38. The icon was designed by Tom Poston of ImMedia.  Thanks to Burt Johnson for paying for that service.
  39.  
  40. By the way, if you used the first version, 1.0b1, you will need to rebuild your desktop if you want to see the new icon.
  41.  
  42.  
  43. Distribution
  44.  
  45. Reference Link is copyrighted freeware.  Of course if you *want* to send me some money for it, you can.
  46.  
  47. Reference Link may not be sold or offered for sale, or included with another software product offered for sale, except with the express written permission of the author.  The author’s failure to give permission promptly should not be taken as consent.  Companies that distribute public domain/freeware/shareware software for profit are expressly prohibited from distributing Reference Link.  This restriction does not apply to bulletin boards, commercial on-line services such as America Online, CompuServe and GEnie, and nonprofit Macintosh user groups which hold regularly scheduled public meetings.
  48.  
  49.  
  50. Author’s address
  51.  
  52. E-mail:
  53. CompuServe: 76367,2271
  54. America Online: JWWalker
  55. Internet: walkerj@math.scarolina.edu
  56.  
  57. Hard mail:
  58. James W. Walker
  59. 3200 Heyward Street
  60. Columbia, SC 29205